home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / edje / data / src / e_logo.edc next >
Text File  |  2006-01-09  |  19KB  |  736 lines

  1. fonts {
  2.    font: "Vera.ttf" "Vera";
  3.    font: "VeraBd.ttf" "Vera-Bold";
  4. }
  5. images {
  6.    image: "bg.png" LOSSY 95;
  7.    image: "e.png"  LOSSY 95;
  8.    // used for anim
  9.    image: "e001.png" LOSSY 95;
  10.    image: "e002.png" LOSSY 95;
  11.    image: "e003.png" LOSSY 95;
  12.    image: "e004.png" LOSSY 95;
  13.    image: "e005.png" LOSSY 95;
  14.    image: "e006.png" LOSSY 95;
  15.    image: "e007.png" LOSSY 95;
  16.    image: "e008.png" LOSSY 95;
  17.    image: "e009.png" LOSSY 95;
  18.    image: "e010.png" LOSSY 95;
  19.    image: "e011.png" LOSSY 95;
  20.    image: "e012.png" LOSSY 95;
  21.    image: "e013.png" LOSSY 95;
  22.    image: "e014.png" LOSSY 95;
  23.    image: "e015.png" LOSSY 95;
  24.    image: "e016.png" LOSSY 95;
  25.    image: "e017.png" LOSSY 95;
  26.    image: "e018.png" LOSSY 95;
  27.    image: "e019.png" LOSSY 95;
  28.    image: "e020.png" LOSSY 95;
  29.    image: "e021.png" LOSSY 95;
  30.    image: "e022.png" LOSSY 95;
  31.    image: "e023.png" LOSSY 95;
  32.    image: "e024.png" LOSSY 95;
  33.    image: "e025.png" LOSSY 95;
  34.    image: "e026.png" LOSSY 95;
  35.    image: "e027.png" LOSSY 95;
  36.    image: "e028.png" LOSSY 95;
  37.    image: "e029.png" LOSSY 95;
  38.    image: "e030.png" LOSSY 95;
  39.    image: "e031.png" LOSSY 95;
  40.    image: "e032.png" LOSSY 95;
  41.    image: "e033.png" LOSSY 95;
  42.    image: "e034.png" LOSSY 95;
  43.    image: "e035.png" LOSSY 95;
  44.    image: "e036.png" LOSSY 95;
  45.    image: "e037.png" LOSSY 95;
  46.    image: "e038.png" LOSSY 95;
  47.    image: "e039.png" LOSSY 95;
  48.    image: "e040.png" LOSSY 95;
  49.    image: "e041.png" LOSSY 95;
  50.    image: "e042.png" LOSSY 95;
  51.    image: "e043.png" LOSSY 95;
  52.    image: "e044.png" LOSSY 95;
  53.    image: "e045.png" LOSSY 95;
  54.    image: "e046.png" LOSSY 95;
  55.    image: "e047.png" LOSSY 95;
  56.    image: "e048.png" LOSSY 95;
  57.    image: "e049.png" LOSSY 95;
  58.    image: "e050.png" LOSSY 95;
  59.    image: "e051.png" LOSSY 95;
  60.    image: "e052.png" LOSSY 95;
  61.    image: "e053.png" LOSSY 95;
  62.    image: "e054.png" LOSSY 95;
  63.    image: "e055.png" LOSSY 95;
  64.    image: "e056.png" LOSSY 95;
  65.    image: "e057.png" LOSSY 95;
  66.    image: "e058.png" LOSSY 95;
  67.    image: "e059.png" LOSSY 95;
  68.    image: "e060.png" LOSSY 95;
  69.    image: "e061.png" LOSSY 95;
  70.    image: "e062.png" LOSSY 95;
  71.    image: "e063.png" LOSSY 95;
  72.    image: "e064.png" LOSSY 95;
  73.    image: "e065.png" LOSSY 95;
  74.    image: "e066.png" LOSSY 95;
  75.    image: "e067.png" LOSSY 95;
  76.    image: "e068.png" LOSSY 95;
  77.    image: "e069.png" LOSSY 95;
  78.    image: "e070.png" LOSSY 95;
  79.    image: "e071.png" LOSSY 95;
  80.    image: "e072.png" LOSSY 95;
  81.    image: "e073.png" LOSSY 95;
  82.    image: "e074.png" LOSSY 95;
  83.    image: "e075.png" LOSSY 95;
  84.    image: "e076.png" LOSSY 95;
  85.    image: "e077.png" LOSSY 95;
  86.    image: "e078.png" LOSSY 95;
  87.    image: "e079.png" LOSSY 95;
  88.    image: "e080.png" LOSSY 95;
  89.    image: "e081.png" LOSSY 95;
  90.    image: "e082.png" LOSSY 95;
  91.    image: "e083.png" LOSSY 95;
  92.    image: "e084.png" LOSSY 95;
  93.    image: "e085.png" LOSSY 95;
  94.    image: "e086.png" LOSSY 95;
  95.    image: "e087.png" LOSSY 95;
  96.    image: "e088.png" LOSSY 95;
  97.    image: "e089.png" LOSSY 95;
  98.    image: "e090.png" LOSSY 95;
  99.    image: "e091.png" LOSSY 95;
  100.    image: "e092.png" LOSSY 95;
  101.    image: "e093.png" LOSSY 95;
  102.    image: "e094.png" LOSSY 95;
  103.    image: "e095.png" LOSSY 95;
  104.    image: "e096.png" LOSSY 95;
  105.    image: "e097.png" LOSSY 95;
  106.    image: "e098.png" LOSSY 95;
  107.    image: "e099.png" LOSSY 95;
  108.    image: "e100.png" LOSSY 95;
  109.    image: "e101.png" LOSSY 95;
  110.    image: "e102.png" LOSSY 95;
  111.    image: "e103.png" LOSSY 95;
  112.    image: "e104.png" LOSSY 95;
  113.    image: "e105.png" LOSSY 95;
  114.    image: "e106.png" LOSSY 95;
  115.    image: "e107.png" LOSSY 95;
  116.    image: "e108.png" LOSSY 95;
  117.    image: "e109.png" LOSSY 95;
  118.    image: "e110.png" LOSSY 95;
  119.    image: "e111.png" LOSSY 95;
  120.    image: "e112.png" LOSSY 95;
  121.    image: "e113.png" LOSSY 95;
  122.    image: "e114.png" LOSSY 95;
  123.    image: "e115.png" LOSSY 95;
  124.    image: "e116.png" LOSSY 95;
  125.    image: "e117.png" LOSSY 95;
  126.    image: "e118.png" LOSSY 95;
  127.    image: "e119.png" LOSSY 95;
  128.    image: "e120.png" LOSSY 95;
  129. }
  130.  
  131. data
  132. {
  133.    item: "My Data" "The string to attach to this data";
  134.    item: "The Key" "String data attached to the key";
  135. }
  136.  
  137. styles
  138. {
  139.    style {
  140.       name: "default";
  141.       base: "font=Vera font_size=10 align=left color=#ffffff style=soft_shadow shadow_color=#00000020 wrap=word";
  142.       
  143.       tag:  "br" "\n";
  144.       tag:  "hilight" "+ font_size=12 font=Vera-Bold style=glow glow2_color=#fe87 glow_color=#fa14";
  145.    }
  146. }
  147.  
  148. collections {
  149.    group {
  150.       name: "test";
  151.       min: 128 128;
  152.       max: 1024 768;
  153.       data {
  154.      item: "My Data" "The string to attach to this data";
  155.      item: "The Key" "String data attached to the key";
  156.       }
  157.       script {
  158.      public global_int;
  159.      public global_float;
  160.      public global_str;
  161.      
  162.      public global_click_count;
  163.      
  164.      public timer_cb(val)
  165.        {
  166.           emit("PROGRAAAAAAAM", "TIMER@!@!@!@!@!@!@!");
  167.        }
  168.        public anim_cb(val, Float: pos)
  169.        {
  170.           new buf[100];
  171.           
  172.           snprintf(buf, 100, "val = %i, pos = %f", val, pos);
  173.           emit("PR AAAAAAAAANIM", buf);
  174.        }
  175.      
  176.        public message(Msg_Type:type, id, ...)
  177.        {
  178.           emit("MSG", "PROCESS");
  179.           if (type == MSG_NONE)
  180.         {
  181.            new buf[100];
  182.            
  183.            snprintf(buf, sizeof(buf), "ID: %i", id);
  184.            emit("MESSAGE_NONE", buf);
  185.         }
  186.           else if (type == MSG_STRING)
  187.         {
  188.            new str[100];
  189.            new buf[100];
  190.            
  191.            snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id);
  192.            getsarg(2, str, sizeof(str));
  193.            emit(buf, str);
  194.         }
  195.           else if (type == MSG_INT_SET)
  196.         {
  197.            new buf[100];
  198.            
  199.            snprintf(buf, sizeof(buf), "MESSAGE INT SET ID: %i", id);
  200.            for (new i = 2; i < numargs(); i++)
  201.              {
  202.             new val;
  203.             new str[100];
  204.             
  205.             val = getarg(i);
  206.             snprintf(str, sizeof(str), "V %i", val);
  207.             emit(buf, str);
  208.              }
  209.         }
  210.        }
  211.       }
  212.       parts {
  213.      part {
  214.         name:          "background";
  215.         mouse_events:  1;
  216.         dragable {
  217.         events: "dragable";
  218.         }
  219.  
  220.         description {
  221.            state:    "default" 0.0;
  222.            color_class:   "bg";
  223.            rel1 {
  224.           relative: 0.0  0.0;
  225.           offset:   0    0;
  226.            }
  227.            rel2 {
  228.           relative: 1.0  1.0;
  229.           offset:   -1   -1;
  230.            }
  231.            image {
  232.           normal: "bg.png";
  233.            border: 12 12 12 12;
  234.            }
  235.         }
  236.      }
  237.      part {
  238.         name:   "textblock";
  239.         type:   TEXTBLOCK;
  240.         description {
  241.            state:    "default" 0.0;
  242.            rel1 {
  243.           relative: 0.0  0.0;
  244.           offset:   10 10;
  245.            }
  246.            rel2 {
  247.           relative: 1.0 1.0;
  248.           offset:   -11 -11;
  249.            }
  250.            text {
  251.           style: "default";
  252.           text:  
  253.           "This is a longer test string<br>"
  254.             "after a newline some <hilight>HILIGHTED text can be styled</hilight> by the edje...<br>"
  255.             "and more.";
  256.            }
  257.         }
  258.      }
  259.      part {
  260.         name:   "text";
  261.         type:   TEXT;
  262.             effect: SOFT_SHADOW;
  263.         description {
  264.            state:    "default" 0.0;
  265.            rel1 {
  266.           relative: 1.0  0.0;
  267.           offset:   0 0;
  268.           to:       "logo";
  269.            }
  270.            rel2 {
  271.           relative: 3.0 1.0;
  272.           offset:   -64 -1;
  273.           to:       "logo";
  274.            }
  275.            color_class: "fg";
  276.            color: 255 255 255 255;
  277. //           color2: 0 0 255 255;
  278.            color3: 0 0 0 32;
  279.            text {
  280.           text:     "This is a longer test string";
  281.           text_class: "plainjane";
  282.           font:     "Vera";
  283.           size:     10;
  284. //          fit:    0 1;
  285. //          min:    1 1;
  286.           align:   0.0 0.5;
  287.           elipsis: 1.0;
  288.            }
  289.         }
  290.      }
  291. /* test swallowing */
  292. /*     
  293.      part {
  294.         name:          "swallow";
  295.         mouse_events:  0;
  296.         type:          RECT;
  297.         description {
  298.            state:    "default" 0.0;
  299.            rel1 {
  300.           relative: 0.0  1.0;
  301.           offset:   0    0;
  302.           to:       "logo";
  303.            }
  304.            rel2 {
  305.           relative: 1.0  1.0;
  306.           offset:   -1   99;
  307.           to:       "logo";
  308.            }
  309.            color:       0 0 0 100;
  310.         }
  311.      }
  312.  */
  313.      part {
  314.         name:          "logo";
  315.         description {
  316.            state:    "default" 0.0;
  317.            min:      64 64;
  318.            max:      320 320;
  319.            aspect:   1.0 1.0;
  320.            rel1 {
  321.           relative: 0.0  0.0;
  322.           offset:   16   16;
  323.            }
  324.            rel2 {
  325.           relative: 0.3  0.3;
  326.           offset:   15  16;
  327.            }
  328.            image {
  329.           normal: "e.png";
  330.            }
  331. /*           
  332.            fill {
  333.           smooth: 0;
  334.            }
  335.  */
  336.         }
  337.         description {
  338.            state:    "clicked" 0.0;
  339.            min:      48 48;
  340.            max:      280 280;
  341.            aspect:   1.0 1.0;
  342.            rel1 {
  343.           relative: 0.0  0.0;
  344.           offset:   20   20;
  345.            }
  346.            rel2 {
  347.           relative: 0.3  0.3;
  348.           offset:   12  12;
  349.            }
  350.            image {
  351.           normal: "e.png";
  352.            }
  353.         }
  354.      }
  355.      part {
  356.         name:          "logo_anim";
  357. //        clip_to:       "clip";
  358.         description {
  359.            state:    "default" 0.0;
  360.            max:      160 120;
  361.            aspect:   1.3333 1.3333;
  362.            rel1 {
  363.           relative: 0.0  0.0;
  364.           offset:   16   16;
  365.            }
  366.            rel2 {
  367.           relative: 1.0  1.0;
  368.           offset:   -17  -17;
  369.            }
  370.            image {
  371.           normal: "e120.png";
  372.           tween: "e001.png";
  373.           tween: "e002.png";
  374.           tween: "e003.png";
  375.           tween: "e004.png";
  376.           tween: "e005.png";
  377.           tween: "e006.png";
  378.           tween: "e007.png";
  379.           tween: "e008.png";
  380.           tween: "e009.png";
  381.           tween: "e010.png";
  382.           tween: "e011.png";
  383.           tween: "e012.png";
  384.           tween: "e013.png";
  385.           tween: "e014.png";
  386.           tween: "e015.png";
  387.           tween: "e016.png";
  388.           tween: "e017.png";
  389.           tween: "e018.png";
  390.           tween: "e019.png";
  391.           tween: "e020.png";
  392.           tween: "e021.png";
  393.           tween: "e022.png";
  394.           tween: "e023.png";
  395.           tween: "e024.png";
  396.           tween: "e025.png";
  397.           tween: "e026.png";
  398.           tween: "e027.png";
  399.           tween: "e028.png";
  400.           tween: "e029.png";
  401.           tween: "e030.png";
  402.           tween: "e031.png";
  403.           tween: "e032.png";
  404.           tween: "e033.png";
  405.           tween: "e034.png";
  406.           tween: "e035.png";
  407.           tween: "e036.png";
  408.           tween: "e037.png";
  409.           tween: "e038.png";
  410.           tween: "e039.png";
  411.           tween: "e040.png";
  412.           tween: "e041.png";
  413.           tween: "e042.png";
  414.           tween: "e043.png";
  415.           tween: "e044.png";
  416.           tween: "e045.png";
  417.           tween: "e046.png";
  418.           tween: "e047.png";
  419.           tween: "e048.png";
  420.           tween: "e049.png";
  421.           tween: "e050.png";
  422.           tween: "e051.png";
  423.           tween: "e052.png";
  424.           tween: "e053.png";
  425.           tween: "e054.png";
  426.           tween: "e055.png";
  427.           tween: "e056.png";
  428.           tween: "e057.png";
  429.           tween: "e058.png";
  430.           tween: "e059.png";
  431.           tween: "e060.png";
  432.           tween: "e061.png";
  433.           tween: "e062.png";
  434.           tween: "e063.png";
  435.           tween: "e064.png";
  436.           tween: "e065.png";
  437.           tween: "e066.png";
  438.           tween: "e067.png";
  439.           tween: "e068.png";
  440.           tween: "e069.png";
  441.           tween: "e070.png";
  442.           tween: "e071.png";
  443.           tween: "e072.png";
  444.           tween: "e073.png";
  445.           tween: "e074.png";
  446.           tween: "e075.png";
  447.           tween: "e076.png";
  448.           tween: "e077.png";
  449.           tween: "e078.png";
  450.           tween: "e079.png";
  451.           tween: "e080.png";
  452.           tween: "e081.png";
  453.           tween: "e082.png";
  454.           tween: "e083.png";
  455.           tween: "e084.png";
  456.           tween: "e085.png";
  457.           tween: "e086.png";
  458.           tween: "e087.png";
  459.           tween: "e088.png";
  460.           tween: "e089.png";
  461.           tween: "e090.png";
  462.           tween: "e091.png";
  463.           tween: "e092.png";
  464.           tween: "e093.png";
  465.           tween: "e094.png";
  466.           tween: "e095.png";
  467.           tween: "e096.png";
  468.           tween: "e097.png";
  469.           tween: "e098.png";
  470.           tween: "e099.png";
  471.           tween: "e100.png";
  472.           tween: "e101.png";
  473.           tween: "e102.png";
  474.           tween: "e103.png";
  475.           tween: "e104.png";
  476.           tween: "e105.png";
  477.           tween: "e106.png";
  478.           tween: "e107.png";
  479.           tween: "e108.png";
  480.           tween: "e109.png";
  481.           tween: "e110.png";
  482.           tween: "e111.png";
  483.           tween: "e112.png";
  484.           tween: "e113.png";
  485.           tween: "e114.png";
  486.           tween: "e115.png";
  487.           tween: "e116.png";
  488.           tween: "e117.png";
  489.           tween: "e118.png";
  490.           tween: "e119.png";
  491.            }
  492.         }
  493.      }
  494.      part {
  495.         name:          "dragable";
  496.         mouse_events:  1;
  497.         dragable {
  498.            // drag in: DIR: ON/OFF STEPPING COUNT;
  499.            x:        1 1 0;
  500.            y:        1 1 0;
  501.            confine: "background";
  502.         }
  503.         description {
  504.            state:    "default" 0.0;
  505.            min:      36 36;
  506.            rel1 {
  507.           relative: 0.5  0.5;
  508.           offset:   0    0;
  509.            }
  510.            rel2 {
  511.           relative: 0.5  0.5;
  512.           offset:   0    0;
  513.            }
  514.            image {
  515.           normal: "bg.png";
  516.            border: 12 12 12 12;
  517.            }
  518.         }
  519.      }
  520.       }
  521.       programs {
  522.      program {
  523.         name:       "logo_click";
  524.         signal:     "mouse,down,1";
  525.         source:     "logo";
  526. // test to see if program loops can be avoided
  527. //        signal:     "*";
  528. //        source:     "*";
  529.         action:     STATE_SET "clicked" 0.0;
  530.         transition: LINEAR 0.0;
  531.         target:     "logo";
  532.      }
  533.      program {
  534.         name:       "logo_unclick";
  535.         signal:     "mouse,up,1";
  536.         source:     "logo";
  537.         action:     STATE_SET "default" 0.0;
  538.         transition: DECELERATE 0.25;
  539.         target:     "logo";
  540.      }
  541.      program {
  542.         name:       "logo_animate";
  543.         signal:     "show";
  544.         source:     "";
  545.         action:     STATE_SET "default" 0.0;
  546.         transition: LINEAR 4.0;
  547.         target:     "logo_anim";
  548.         after:      "logo_animate"; // at end... loop
  549.      }
  550.      program {
  551.         name:       "logo_animate_stop";
  552.         signal:     "mouse,down,1";
  553.         source:     "logo_anim";
  554.         action:     ACTION_STOP;
  555.         target:     "logo_animate";
  556.      }
  557.      // Test get_drag_dir function. Clicking with mouse button
  558.      // 1 on that long rectangle causes a print-out of its
  559.      // dragability directions.
  560.      program {
  561.             name:       "test_drag_dir";
  562.             signal:     "mouse,down,1";
  563.             source:     "dragable";
  564.             script {
  565.            new j;
  566.            new buff[256];
  567.            j = get_drag_dir(PART:"dragable");    
  568.            snprintf(buff, 256, "**Drag Direction** %i", j);
  569.            emit("DEBUG...", buff);
  570.         }
  571.      }
  572.      // Test the get_drag function. Dragging the long rectangle
  573.      // causes print-out of dragging coordinates.
  574.      program {   
  575.             name:       "test_get_drag";
  576.             signal:     "drag";
  577.             source:     "dragable";
  578.             script {  
  579.                new Float:dx;
  580.            new Float:dy; 
  581.                new buff[256];
  582.                get_drag(PART:"dragable", dx, dy);
  583.                snprintf(buff, 256, "**Drag** x: %f y: %f", dx, dy);
  584.                emit("DEBUG...", buff);
  585.             }
  586.         }
  587.     // Test the set_drag function. Clicking with mouse button
  588.     // 3 on the text object causes the long rectangle to be
  589.     // translated to the coordinates (0.1, 0.5)
  590.     program {
  591.             name:       "test_set_drag";
  592.             signal:     "mouse,down,3";
  593.             source:     "text";
  594.             script {
  595.                set_drag(PART:"dragable", 0.1, 0.5);
  596.                emit("DEBUG...", "SET_DRAG");
  597.             }
  598.         }
  599.     // Test the set_text and get_text functions. Clicking down on 
  600.     // the text with button 1 changes the text, releasing reverts.
  601.     program {
  602.             name:       "test_set_and_get_text1";
  603.             signal:     "mouse,down,1";
  604.             source:     "text";
  605.             script {
  606.            new buf[256]; 
  607.            get_text(PART:"text", buf, 256);
  608.            emit("DEBUG...", buf);
  609.            set_text(PART:"text", "Text has changed");    
  610.            new r,g,b,a;
  611.                set_color_class("bg", 255, 0, 0, 127);
  612.                get_color_class("bg", r, g, b, a);
  613.                snprintf(buf, 256, "r: %i g: %i b: %i a: %i", r, g, b, a);
  614.                emit("DEBUG...", buf);
  615.            new font[100];
  616.            new Float:size;
  617.            get_text_class("plainjane", font, size);
  618.            snprintf(buf, 256, "%s SIZE: %f", font, size);
  619.            emit("DEBUG...", buf); 
  620.            set_text_class("plainjane", "Vera-Bold", 10.0);
  621.             }
  622.         }   
  623.     program {
  624.             name:       "test_set_and_get_text2";
  625.             signal:     "mouse,up,1";
  626.             source:     "text";
  627.             script {
  628.                set_text(PART:"text", "This is a longer test string");
  629.            new w;
  630.            new h;
  631.            new w2;
  632.            new h2;
  633.            get_min_size(w, h);
  634.            get_max_size(w2, h2);
  635.            new buf[256];
  636.            snprintf(buf, 256, "**Min Size** w: %i h: %i\n**Max Size** w: %i h: %i", w, h, w2, h2);
  637.                emit("DEBUG...", buf);
  638.            get_mouse(w,h);
  639.            snprintf(buf, 256, "**Mouse at** x: %i y: %i\n", w, h);
  640.            emit("DEBUG...", buf);
  641.            set_color_class("bg", 255, 255, 255, 255);
  642.            set_text_class("plainjane", "Vera", 8.0);
  643.             }
  644.          }
  645.      program {
  646.         name:       "logo_animate_signal";
  647.         signal:     "mouse,up,1";
  648.         source:     "logo_anim";
  649. //        action:     SIGNAL_EMIT "do_it" "the_source";
  650.         script {
  651.            set_int(global_int, PART:"logo");
  652.            set_int(global_int, PART:"dragable");
  653.            set_int(global_int, IMAGE:"e001.png");
  654.            set_int(global_int, IMAGE:"e002.png");
  655.            set_int(global_int, IMAGE:"e003.png");
  656.            set_int(global_int, IMAGE:"e007.png");
  657.            set_int(global_int, PROGRAM:"logo_animate_signal");
  658.            set_int(global_int, PROGRAM:"logo_animate_signal");
  659.            set_int(global_int, PROGRAM:"logo_animate_signal");
  660.            
  661.            emit("PROGRAAAAAAAM", "TEEEEEEEEEEEEEST");
  662. //           set_int(global_int, 10);
  663.            set_float(global_float, 10.0);
  664.            set_str(global_str, "smelly fish");
  665.            new buf[256];
  666.            
  667.            new i;
  668.            i = get_int(global_int);
  669.            snprintf(buf, 256, "1. i = %i :)", i);
  670.            emit("DEBUG...", buf);
  671.            
  672.            new Float:f;
  673.            f = get_float(global_float);
  674.            snprintf(buf, 256, "2. f = %f :)", f);
  675.            emit("DEBUG...", buf);
  676.            
  677.            new s[256];
  678.            get_str(global_str, s, 256);
  679.            snprintf(buf, 256, "3. s = %s :)", s);
  680.            emit("DEBUG...", buf);
  681.            
  682.            set_state(PART:"logo", "clicked", 0.0);
  683.            set_tween_state(PART:"logo", randf(), "default", 0.0, "clicked", 0.0);
  684.            run_program(PROGRAM:"logo_click_d2");
  685.            timer(2.5, "timer_cb", 777);
  686.            anim(1.5, "anim_cb", 7777);
  687.         }
  688.      }
  689. #if 0     
  690.      program {
  691.         name:       "random_signal";
  692.         signal:     "show";
  693.         source:     "";
  694.         in:         1.0 5.0;
  695.         action:     SIGNAL_EMIT "do_random" "the_source";
  696.      }
  697.      program {
  698.         name:       "random_signal";
  699.         signal:     "do_random";
  700.         source:     "the_source";
  701.         in:         1.0 5.0;
  702.         action:     SIGNAL_EMIT "do_random" "the_source";
  703.      }
  704. #endif     
  705.      program {
  706.         name:       "logo_click_d1";
  707.         signal:     "mouse,down,1";
  708.         source:     "logo";
  709.         action:     DRAG_VAL_STEP 1.0 1.0;
  710.         target:     "dragable";
  711.      }
  712.      program {
  713.         name:       "logo_click_d2";
  714.         signal:     "mouse,down,2";
  715.         source:     "logo";
  716.         script {
  717.            new i = get_int(global_click_count);
  718.            set_int(global_click_count, i + 1);
  719.            
  720.            if (i < 5)
  721.          send_message(MSG_NONE, 777);
  722.            else if (i < 10)
  723.          send_message(MSG_STRING, 123, "blah blah panties");
  724.         }
  725.      }
  726.      program {
  727.         name:       "logo_click_d3";
  728.         signal:     "mouse,down,3";
  729.         source:     "logo";
  730.         action:     DRAG_VAL_STEP -1.0 -1.0;
  731.         target:     "dragable";
  732.      }
  733.       }
  734.    }
  735. }
  736.